package com.itheima;

import com.itcast.config.EnableRoleAndUser;
import com.itcast.config.ThirdConfig;
import com.itcast.config.ThirdImportSelector;
import com.itcast.pojo.Role;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@ServletComponentScan // 扫描Filter过滤器实现拦截
//@MapperScan("com.itheima.com") // 扫描mapper 放到IOC容器
//@Import(Role.class) // 导入普通类
//@Import(ThirdConfig.class) // 导入配置类
//@Import(ThirdImportSelector.class) // 导入ImportSelector接口实现类
@Import(ThirdImportSelector.class) // 导入自定义注解
public class TliasProjectApplication {

    public static void main(String[] args) {
        SpringApplication.run(TliasProjectApplication.class, args);
    }

}
